package cn.niit.letuseatdemo.service;

import cn.niit.letuseatdemo.entity.domain.OrderGoods;

import java.util.List;

/**
  * @Description: 订单service接口
  * @Author: su_fuming
  * @CreateTime: 2022/11/8 21:51
 * @param: null
 * @return: null
  **/
public interface OrderGoodsService
{
    /**
     * 查询订单
     *
     * @param orderId 订单主键
     * @return 订单
     */
    public OrderGoods selectOrderGoodsByOrderId(Long orderId);

    /**
     * 查询订单列表
     *
     * @param orderGoods 订单
     * @return 订单集合
     */
    public List<OrderGoods> selectOrderGoodsList(OrderGoods orderGoods);

    /**
     * 新增订单
     *
     * @param orderGoods 订单
     * @return 结果
     */
    public int insertOrderGoods(OrderGoods orderGoods);

    /**
     * 修改订单
     *
     * @param orderGoods 订单
     * @return 结果
     */
    public int updateOrderGoods(OrderGoods orderGoods);

    /**
     * 批量删除订单
     *
     * @param orderIds 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteOrderGoodsByOrderIds(String orderIds);

    /**
     * 删除订单信息
     *
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteOrderGoodsByOrderId(Long orderId);
    /**
     * 修改订单状态
     *
     * @param
     * @return 结果
     */
    int updateOrderStatus(OrderGoods orderGoods);
}
